package com.supcon.util;

import lombok.Data;

/**
 * @author BeautifulHao
 * @description
 * @create 2019-04-26 10:09
 **/
@Data
public class FriendlyException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int code;
    private String msg;

    public FriendlyException(String msg) {
        super();
        this.msg = msg;
    }

    public FriendlyException(int code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }
}
